package com.lw.ssm.pojo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.util.StringUtils;

public class Student implements CheckNull{

  private long id;
  private String stuNo;
  private String stuName;
  private long age;
  private String gender;

  @JsonIgnore
  @Override
  public boolean isEmpty() {
    return !StringUtils.hasText(stuName);
  }


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getStuNo() {
    return stuNo;
  }

  public void setStuNo(String stuNo) {
    this.stuNo = stuNo;
  }


  public String getStuName() {
    return stuName;
  }

  public void setStuName(String stuName) {
    this.stuName = stuName;
  }


  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }


  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }

  @Override
  public String toString() {
    return "Student{" +
            "id=" + id +
            ", stuNo='" + stuNo + '\'' +
            ", stuName='" + stuName + '\'' +
            ", age=" + age +
            ", gender='" + gender + '\'' +
            '}';
  }

}
